package  
{
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Text;
	

	
	/**
	 * ...
	 * @author Donatello
	 */

 
	public class TextMessage extends Entity
	{
			
		private var texto:Text;
		
		private var time:Number;
		
		public function TextMessage(message:String, px:Number, py:Number) 
		{
			this.x =px;
			this.y = py;
			texto = new Text(message);
			graphic = texto;

		}
		
		public function changeText(message:String):void {
			texto = new Text(message);
			graphic = texto;
		}
		
		
	
	
		
		
	}
}